from rusher import Rusher

class XssmmRusher(Rusher):
  def __init__(self):
    super().__init__()
    self.url_list.extend([
      # xssmm
      'http://www.xssmm.com/?fromuid=128131',
      'http://www.xssmm.com/?fromuid=156014',
      'http://www.xssmm.com/?fromuid=156053',
      'http://www.xssmm.com/?fromuid=156701',
      # get32
      'http://bbs.get32.com/?fromuid=24410',
      'http://bbs.get32.com/?fromuid=746678',
      ])

  def Request(self, url, proxy=None):
    req = self._BuildRequest(proxy)
    try:
      f = req.open(url)
    except:
      return False
    data = f.read()
    return True
